package day02;

import java.util.Arrays;

public class shuzudaozhi {
	public static void main(String[] args) {	
		int[] x = { 2, 8, 10, 12, 33 };
		reverse(x);
		System.out.println(Arrays.toString(x));
  }
	public static void reverse(int[] n) {
		int i;
		int j = 0;
		int length = n.length;
		for (i = 0; i < length / 2; i++) {
			j = n[i];
			n[i] = n[length - i - 1];
			n[length - i - 1] = j;
		}
	}
}
